package com.cater.common;

import java.io.Serializable;

/**
 * 抽取查询对象
 * 
 */
public abstract class BaseQuery implements Serializable {
	private static final long serialVersionUID = 1L;
	// 当前页码
	private int page;
	// 页面可显示行数
	private int rows;
	// 用于排序的列名
	private String sidx;
	// 排序的方式desc/asc
	private String sord;
	// 已经发送的请求的次数
	private String nd;
	
	private String companyAllUserid =UserContext.getCompanyAllUserid();
	
	private  Boolean isadmin =UserContext.isadmin();
	
	private  Integer companyid =UserContext.getdeppId();
	
	private  Integer depId =UserContext.getdeppId();
	
	private  Integer userIds = UserContext.getId();
	
	private  Integer datarole = UserContext.getDataRole();
	private  Integer isareaAdmin =UserContext.getIsadminType();

	

	public BaseQuery() {
		super();
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSidx() {
		return sidx;
	}

	public void setSidx(String sidx) {
		this.sidx = sidx;
	}

	public String getSord() {
		return sord;
	}

	public void setSord(String sord) {
		this.sord = sord;
	}

	public String getNd() {
		return nd;
	}

	public void setNd(String nd) {
		this.nd = nd;
	}

	public Boolean getIsadmin() {
		return isadmin;
	}

	public void setIsadmin(Boolean isadmin) {
		this.isadmin = isadmin;
	}

	public Integer getCompanyid() {
		return companyid;
	}

	public void setCompanyid(Integer companyid) {
		this.companyid = companyid;
	}

	public Integer getUserIds() {
		return userIds;
	}

	public void setUserIds(Integer userIds) {
		this.userIds = userIds;
	}

	public Integer getDatarole() {
		return datarole;
	}

	public void setDatarole(Integer datarole) {
		this.datarole = datarole;
	}

	public Integer getIsareaAdmin() {
		return isareaAdmin;
	}

	public void setIsareaAdmin(Integer isareaAdmin) {
		this.isareaAdmin = isareaAdmin;
	}

	public String getCompanyAllUserid() {
		return companyAllUserid;
	}

	public void setCompanyAllUserid(String companyAllUserid) {
		this.companyAllUserid = companyAllUserid;
	}

	public Integer getDepId() {
		return depId;
	}

	public void setDepId(Integer depId) {
		this.depId = depId;
	}
}
